module.exports = {
  "transpileDependencies": [
    "vuetify"
  ],
  configureWebpack: {
    externals: {
        './cptable': 'var cptable'
    }
  },
  publicPath: './',
  devServer: {
      port: 9000,
      disableHostCheck: true,
      proxy: {
          "/api": {
              //请求源地址
              target: 'http://127.0.0.1:8899',
              //是否跨域
              changeOrigin: true,
              ws: true,
              pathRewrite: {
                  '^/api': ''
              }
          }
      }
  },
  chainWebpack: config => {
    config.externals({ './cptable': 'var cptable' })
  }
}
